﻿<!DOCTYPE html>
<html lang="en">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Seeoff</title>
		
		<!-- Jquery UI -->
		<link href="<?php echo URL; ?>public/css/jquery-ui.css" rel="stylesheet">
		<link href="<?php echo URL; ?>public/css/jquery-ui.structure.css" rel="stylesheet">
		<link href="<?php echo URL; ?>public/css/jquery-ui.theme.css" rel="stylesheet">

		<!-- Bootstrap -->
		<link href="<?php echo URL; ?>public/css/bootstrap.min.css" rel="stylesheet">
		<link href="<?php echo URL; ?>public/css/bootstrap.modify.css" rel="stylesheet">
		<link href="<?php echo URL; ?>public/css/estrutura.css" rel="stylesheet">
		<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>


		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
		<script src="<?php echo URL; ?>public/js/jquery-ui.js"></script>
		<!-- Include all compiled plugins (below), or include individual files as needed -->
		<script src="<?php echo URL; ?>public/js/bootstrap.min.js"></script>
		<!--<script src="<?php// echo URL; ?>public/js/holder.js"></script> -->
		<script type="text/javascript" src="<?php echo URL; ?>public/js/jquery.maskMoney.js" ></script>


		<script type="text/javascript">
			$(document).ready(function(){
				  $("input.preco").maskMoney({showSymbol:true, symbol:"R$", decimal:",", thousands:"."});

				  $( "#slider-range-min" ).slider({
				      range: "min",
				      value: 50,
				      min: 1,
				      max: 99,
				      slide: function( event, ui ) {
				        $( "#amount" ).val( ui.value + "%");
				      }
				    });
				    $( "#amount" ).val( $( "#slider-range-min" ).slider( "value" ) + "%" );
			});
		</script>
		
    </head>

    <body>
        <?php
        	if(@$_SESSION['usuario']['logado']){
				include 'application/views/_templates/header_login.php';
			}

			else{
				include 'application/views/_templates/header_nologin.php';
			}


        ?>

		<!-- Menu -->
        <nav class="navbar navbar-default" role="navigation">
			<div class="container">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
				</div>
				
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li <?php if($page == "paginainicial") echo 'class="active"' ; ?>><a href="<?php echo URL; ?>home">Pagina inicial</a></li>
						<li <?php if($page == "promocoes") echo 'class="active"' ; ?>><a href="<?php echo URL; ?>promocoes">Promoções</a></li>
						<li <?php if($page == "contato") echo 'class="active"' ; ?>><a href="<?php echo URL; ?>contato">Contato</a></li>
					</ul>
					<form class="navbar-form navbar-right" role="search" method="GET" action="<?php echo URL; ?>promocoes/busca">
						<div class="form-group">
							<input name="busca" id="busca" type="text" class="form-control" placeholder="Busca anúncio">
						</div>
						<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
					</form>
				</div>
			</div>
        </nav>

        <div class="content">
        	
     